4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	17:05:10 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	17:05:11 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	17:05:11 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 244, send count: 4, loop count: 3, bytes sent 264295 / 264295, 0 remaining, total send time 33 µs. 	1.2.2022 	17:33:52 	lx 	(5. palvelin)

 -- tcp answer 246, send count: 4, loop count: 3, bytes sent 264003 / 264003, 0 remaining, total send time 139 µs. 	1.2.2022 	17:33:59 	lx 	(5. palvelin)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 750 bytes ***. 	1.2.2022 	18:31:29 	lx 	(5. palvelin)

closing socket '91'. 	1.2.2022 	18:31:29 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	19:15:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	19:15:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	19:15:34 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 286 bytes ***. 	1.2.2022 	19:15:56 	lx 	(5. palvelin)

closing socket '91'. 	1.2.2022 	19:15:56 	lx 	(5. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

closing socket '72'. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

closing socket '73'. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          250
poll.fd_count:        0
pollCount:            1238616
pollInCount:          256
pollOutCount:         0
pollCloseCount:       6
pollErrCount:         0
fd add/remove count:  8/8
totalBytesReceived:   221180
totalBytesSent:       1638301. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

--- server stopped ---. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x012c35ede0. 	1.2.2022 	19:16:35 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

  database connect time: 0.0004 seconds. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	1.2.2022 	19:16:56 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	1.2.2022 	19:16:56 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ee604c0, size: 400. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

All plugins have been loaded. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/, https://192.168.33.2:5949/. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949, 192.168.33.2:5949/. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

--- server started in 0.0017 seconds, 2022-02-01 19:16:58, used memory 3113.8 kb --- 	 5. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	1.2.2022 	19:16:58 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-02-01 19:20:29
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 1026
Content-Uncompressed-Length: 1642

LZ4. 	1.2.2022 	19:20:29 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	1.2.2022 	19:20:29 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	1.2.2022 	19:20:29 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	1.2.2022 	19:20:29 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	1.2.2022 	19:20:29 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	19:20:29 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.00186
  
SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 LEFT OUTER JOIN company co ON co.company_id = inv.company_id
 WHERE inv.company_id IN ('1057')
 ORDER BY inv.invoice_id. 	1.2.2022 	19:20:29 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	19:20:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	19:20:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 9, first value: 'IMSY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	1.2.2022 	19:20:34 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 069 bytes ***. 	1.2.2022 	19:22:41 	lx 	(5. palvelin)

closing socket '77'. 	1.2.2022 	19:22:41 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	20:10:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	20:10:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	1.2.2022 	20:10:21 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 285 bytes ***. 	1.2.2022 	20:18:59 	lx 	(5. palvelin)

closing socket '77'. 	1.2.2022 	20:18:59 	lx 	(5. palvelin)

